<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020\9\15 0015
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>admin-index-welcome</title>
    <%@include file="/views/common/headerStyle.jsp" %>
</head>
<body>
<div class="container">
    <%@include file="/views/common/header.jsp" %>
    <div class="row main_box">
        <div class="col-sm-3"><%@include file="/views/common/leftMenu.jsp" %></div>
        <div class="col-sm-9">


            <table class="table table-striped">
                <thead>
                <tr>
                    <th scope="col">#</th>
                    <th scope="col">类型名称</th>
                    <th scope="col">是否启用</th>
                    <th scope="col">分组属性</th>
                    <th scope="col">操作</th>
                    <th scope="col">属性设置</th>
                </tr>
                </thead>
                <tbody>

                <c:forEach items="${productTypeList}" var="item">

                    <tr>
                        <th scope="row">${item.id}</th>
                        <td>${item.model_name}</td>
                        <td>${item.enable}</td>
                        <td>${item.attr_group}</td>
                        <td>
                            <div class="btn-group" role="group" aria-label="Basic example">
                                <button type="button" class="btn btn-success btn-sm"><a href="${BASE_PATH}admin/product/edittype?type_id=${item.id}" target="_self">编辑</a></button>
                                <button type="button" class="btn btn-danger btn-sm">删除</button>
                            </div>
                        </td>
                        <td>
                            <div class="btn-group" role="group" aria-label="Basic example">
                                <button type="button" class="btn btn-primary btn-sm"><a href="${BASE_PATH}admin/product/getproductattributelist?mod_id=${item.id}" target="_self">属性列表</a></button>
                                <button type="button" class="btn btn-info btn-sm"><a href="${BASE_PATH}admin/product/addproductattribute?mod_id=${item.id}" target="_self">添加属性</a></button>
                            </div>
                        </td>
                    </tr>

                </c:forEach>

                </tbody>
            </table>



        </div>
    </div>
    <%@include file="/views/common/footer.jsp" %>
</div>
</body>
<%@include file="/views/common/footerStyle.jsp" %>
</html>

